﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EChatType extends Object
    {
        public var __value:int;
        public static const _EChatTypeWorld:int = 1;
        public static const _EChatTypeCamp:int = 2;
        public static const _EChatTypeGuild:int = 3;
        public static const _EChatTypeTeam:int = 4;
        public static const _EChatTypeForce:int = 5;
        public static const _EChatTypeSpace:int = 6;
        public static const _EChatTypeCross:int = 7;
        public static const _EChatTypePrivate:int = 8;
        public static const _EChatTypeTrumpet:int = 9;
        public static const _EChatTypeSystem:int = 10;
        public static const _EChatTypeGuildRoll:int = 11;
        public static const _EChatTypeCopy:int = 12;
        public static const _EChatTypeMarket:int = 13;
        public static const _EChatTypeRumor:int = 14;
        public static const _EChatTypeBattleField:int = 15;
        public static const _EChatTypeGuildWar:int = 16;
        public static const _EChatTypeReminder:int = 17;
        public static const _EChatTypeActive:int = 18;
        public static const _EChatTypeFightInfo:int = 19;
        public static const _EChatTypeCrossTrumpet:int = 20;
        public static const _EChatTypeGuildBattle:int = 21;

        public function EChatType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EChatType
        {
            return new EChatType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EChatType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 22)
            {
                throw new MarshalException();
            }
            return EChatType.convert(_loc_2);
        }// end function

    }
}
